from selenium.webdriver.common.by import By

from common.Utils import blog_driver
# 测试博客登录页面

class BlogLogin:
    url=""
    driver=""
    def __init__(self):
        self.url="https://www.bilibili.com/"
        self.driver=blog_driver.driver
        self.driver.get(self.url)
# 成功登录的测试用例
def LoginSucTest(self):
    self.driver.find_element(By.CSS_SELECTOR,"#username").send_keys("admin")
    self.driver.find_element(By.CSS_SELECTOR,"#password").send_keys("123")
    self.driver.find_element(By.CSS_SELECTOR,"submit").click()
# 异常登录的测试用例
